package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import org.example.handler.JsonbTypeHandler;

import java.util.Map;

@lombok.Data
@TableName(value = "data")
public class Data {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @TableField(typeHandler = JsonbTypeHandler.class)
    private Map<String, Object> data;
}
